package com.gejingyu.spring.di;

import java.lang.reflect.Array;
import java.util.Arrays;

public class Emp {

    private String name;

    private Integer age;

    private Dept dept;

    private String[] hobby;

    public void work(){
        System.out.println("员工" + name + "working");
        dept.info();
        System.out.println(Arrays.toString(hobby));
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public Dept getDept() {
        return dept;
    }

    public void setDept(Dept dept) {
        this.dept = dept;
    }

    public String[] getHobby() {
        return hobby;
    }

    public void setHobby(String[] hobby) {
        this.hobby = hobby;
    }
}
